const mysql=require("mysql");
module.exports=function () {
  this.urls={
      cityList:'https://i.meituan.com/awp/hfe/fep/1a368b1d945fd175cc40c859d172350d.json',
      subwayList:"https://ihotel.meituan.com/group/v1/subway/listline?cityId=59",
      areaList:`https://ihotel.meituan.com/group/v2/area/list?cityId=59`,
      categoryList:'http://meishi.meituan.com/i/api/category/list',
      storeList:'http://meishi.meituan.com/i/api/channel/deal/list',
      dealList: 'http://meishi.meituan.com/i/api/poi/deallist'
  };
  this.mysql=mysql.createConnection({
      host     : 'localhost',
      user     : 'root',
      password : 'root',
      database : 'mei_tuan'
  });
  this.mysql.connect();

  return this;
};